package com.rc.saas.tenant.mapper.tenant;

import com.rc.saas.tenant.common.base.BaseMapper;

import java.util.List;

import com.rc.saas.tenant.base.BaseSearch;
import com.rc.saas.tenant.model.tenant.Tenant;
import com.rc.saas.tenant.model.tenant.TenantExample;
import com.rc.saas.tenant.vo.tenant.SchemaColumn;
import org.apache.ibatis.annotations.Param;

public interface TenantMapper extends BaseMapper<String, Tenant, TenantExample> {
    int countByTableAndTenant(@Param(value = "tableName") String tableName, @Param(value = "tenantIdColumn") String tenantIdColumn);

    List<SchemaColumn> selectColumnsByTable(String tableName);

    List<Tenant> searchByCondition(BaseSearch search);
}